<?php
class CAcl extends Zend_Acl
{

	public function __construct()
    {
        // Add resource
        $resource = new Zend_Config_Ini(MY_ROOT.'/php_config/acl.ini','default');
		
        foreach ($resource->toArray() as $key_o => $arr) {

        	$this->add(new Zend_Acl_Resource($arr));
        	
        }
        
		$this->addRole(new Zend_Acl_Role('guest'));
		
        $this->addRole(new Zend_Acl_Role('buyer'), 'guest');
        
        $this->addRole(new Zend_Acl_Role('administrator'));

		
        $this->allow('guest',array('shop'));
        
        $this->allow('buyer',array('adminb','shop'));
        
        $this->allow('administrator',array('administrator','shop'));

    }
  

    
}